﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
using System.Threading.Tasks;
using WcfService.WCFModels;

namespace WcfService
{
    [ServiceContract]
    public interface IAdminService
    {
        // Destination methods
        [OperationContract]
        List<WCFDestination> FindAllDestinations();

        [OperationContract]
        WCFDestination FindDestinationName(string name);

        [OperationContract]
        bool AddDestination(string name, string country);

        // Route methods
        [OperationContract]
        List<WCFRoute> FindAllRoutes();

        [OperationContract]
        bool AddRoute(string fromDestination, string toDestination, string price, string time);

        [OperationContract]
        WCFRoute FindRoute(string from, string to);

        // Interior methods
        [OperationContract]
        List<WCFPlaneInterior> FindAllPlaneInteriors();

        [OperationContract]
        WCFPlaneInterior FindPlaneInterior(int id);

        [OperationContract]
        bool AddPlaneInterior(string model, string firstclassseats, string normalseats);
        
        // Plane methods
        [OperationContract]
        bool AddPlane(string interiorId, string gate, DateTime departure, int routeId);


    }
}
